package edu.spec.lyq.week02;

public class Three {



        public static void main(String[] args){
            int i=0;
            int even_count=0;
            int odd_count=0;
            for (i=0; i<200;i++ ) {
                int x=(int)(Math.random()*999);  //方法是产生一个可以[0.0,1.0]区间内一个双精度浮点数的方法
                System.out.print(" ," + x);

                if (x%2==0)
                    even_count++;
                else
                    odd_count++;
            }
            System.out.println();
            System.out.println("even_numbet " + even_count);
            System.out.println("odd_numbet  " + odd_count);
            System.out.println("even_numbet probability " + (even_count*1.00/200));
            System.out.println("odd_numbet probability  " + (odd_count*1.00/200));
        }
}


